#include <stdio.h>
#include <stdlib.h>

int main()
{
  FILE* pf=fopen("./log.txt","w");
  if(pf == NULL)
  {
    printf("fopen failed!\n");
    exit(1);
  }
  //file operator
  const char* str="Hello Linux!";
  fputs(str,pf);

  fclose(pf);
  pf=NULL;
  return 0;
}
